﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopCooperation")]
    public class Cooperation : BaseObject
    {
        //begin
        public Cooperation()
        {}
        public Cooperation(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _CooperateId;
        public string CooperateId
        {
            get
            {
                return _CooperateId;
            }
            set
            {
                SetPropertyValue("CooperateId", ref _CooperateId, value);
            }
        }
        private string _DistributorId;
        public string DistributorId
        {
            get
            {
                return _DistributorId;
            }
            set
            {
                SetPropertyValue("DistributorId", ref _DistributorId, value);
            }
        }
        private string _DistributorNick;
        public string DistributorNick
        {
            get
            {
                return _DistributorNick;
            }
            set
            {
                SetPropertyValue("DistributorNick", ref _DistributorNick, value);
            }
        }
        private string _ProductLine;
        public string ProductLine
        {
            get
            {
                return _ProductLine;
            }
            set
            {
                SetPropertyValue("ProductLine", ref _ProductLine, value);
            }
        }
        private string _GradeId;
        public string GradeId
        {
            get
            {
                return _GradeId;
            }
            set
            {
                SetPropertyValue("GradeId", ref _GradeId, value);
            }
        }
        private string _TradeType;
        public string TradeType
        {
            get
            {
                return _TradeType;
            }
            set
            {
                SetPropertyValue("TradeType", ref _TradeType, value);
            }
        }
        private string _SupplierId;
        public string SupplierId
        {
            get
            {
                return _SupplierId;
            }
            set
            {
                SetPropertyValue("SupplierId", ref _SupplierId, value);
            }
        }
        private string _SupplierNick;
        public string SupplierNick
        {
            get
            {
                return _SupplierNick;
            }
            set
            {
                SetPropertyValue("SupplierNick", ref _SupplierNick, value);
            }
        }
        private DateTime _StartDate;
        public DateTime StartDate
        {
            get
            {
                return _StartDate;
            }
            set
            {
                SetPropertyValue("StartDate", ref _StartDate, value);
            }
        }
        private DateTime _EndDate;
        public DateTime EndDate
        {
            get
            {
                return _EndDate;
            }
            set
            {
                SetPropertyValue("EndDate", ref _EndDate, value);
            }
        }
        private string _Status;
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        //end
    }
}
